package com.props.scorer;


import com.props.scorer.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class gameSetupActivity extends Activity {

	private PropsApplication propsApplication;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.gamesetup);
        
        //Bring application object into view
        propsApplication = (PropsApplication) getApplicationContext();

        //Setup initial userSettings objects via application object
        propsApplication.setupPreferences();
        
        Button buttonSettings = (Button) findViewById(R.id.settingsButton);
   
        buttonSettings.setOnClickListener(oclSettingsButtonClick);

    }
   
    //OnClickListeners
    
    //Settings button
    private OnClickListener oclSettingsButtonClick = new OnClickListener() {
    	public void onClick(View view) {
            Intent myIntent = new Intent(gameSetupActivity.this, settingsActivity.class);
            startActivityForResult(myIntent, 0);
            finish();
        }
    };
}